import { createApp } from "vue";
import { createPinia } from "pinia";
import "@/assets/css/reset.css";
import "@/assets/iconfont/iconfont.css";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "./router/permission";
// 状态管理库持久化
import piniaPersist from "pinia-plugin-persist";
const pinia = createPinia();
pinia.use(piniaPersist);
// 引入自定义指令
import directive from "@/directives/index";

const app = createApp(App);
app.use(directive);
app.use(ElementPlus);
app.use(pinia);
app.use(router);
app.mount("#app");
